package com.iring.dao.vos;

import org.springframework.stereotype.Component;

import com.iring.domain.vos.phone.GetPhone;
import com.iring.domain.vos.phone.Phone;


/**
 * 话机操作类
 *
 * @author wanggan
 */
@Component
public class GetPhoneDao extends BaseVosDao<GetPhone> {

    private static final String GET_PHONE = "GetPhone";

    /**
     * 查询话机
     *
     * @param phone
     *            获取话机的参数
     * @return  创建话机的结果
     */
    public GetPhone getPhoneInfo(Phone phone) {
        return convertToObject(util.postData(GET_PHONE, phone), GetPhone.class);
    }
}
